@import 'common_component.less';
@import 'common_style.less';
@import 'UI/htmlEditor.less';
@header-height: 5%;
@mainColor: #EBEBEB;
@hightColor: #417BB5;
body {
	font-size: 14px;
}

h3 {
	font-size: 1.2rem;
	letter-spacing: 3px;
	padding: 2%;
}

body.admin-shell {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	a {
		text-decoration: none;
		color: #939da8;
	}

	.memberNav {
		display: none;
	}

	header {
		width: 100%;
		height: @header-height;
		border-top: 1px solid white;
		border-bottom: 1px solid gray;
		.gradient (top , #78B1ED , @hightColor);
		display: table;
		h1 , menu {
			display: table-cell;
			vertical-align: middle;
			color: white;
		}

		h1 {
			text-shadow: 0px 1px 0px black;
			font-weight: normal;
			font-size: 1.1rem;
			text-indent: 2em;
			letter-spacing: 3px;
		}

		menu {
			margin: 0;
			font-size: .9rem;
			padding-right: 2%;
			text-align: right;
			a {
				color: white;
			}
		}
	}
}

@sidebarWidth: 15%;
.side {
	.widthFx;
	width: @sidebarWidth;
	height: 100-@header-height;
	float: left;
	position: relative;
	.gradient (left , #FAFAFA , @mainColor);
	.rightTop_title {
		overflow: hidden;
		width: 80%;
		height: 30px;
		line-height: 30px;
		background-color: #FAFAFA;
		float: right;
	}

	.rightTop {
		overflow: hidden;
		clear: right;
		width: 100%;
		height: 30px;
		background: url("") no-repeat right top;
	}

	.closeBtn {
		position: absolute;
		right: 0;
		top: 0;
		width: 5px;
		height: 100%;
		background: #ECECEC url("") no-repeat scroll 2px 50%;
		border-left: 1px solid #D1D1D1;
		border-right: 1px solid #D1D1D1;
		cursor: pointer;
	}

	.leftSidebar {
		.acMenu ();
		overflow: hidden;
		& > li {
			border-top: 1px solid white;
			border-bottom: 1px solid lightgray;
			&.pressed {
				border-top: 0;
				border-bottom: 1px solid lightgray;
				h3 {
					.gradient (right , transparent , darken(@mainColor, 10));
				}
			}

			ul {
				li {
					list-style-type: disc;
					padding-left: 10%;
					a {
						width: 100%;
						display: block;
					}

					&.selected {
						background-color: lighten(@hightColor, 33);
						a {
							color: black;
						}
					}
				}
			}

			h3 , li {
				padding: 5px 0 5px 15px;
				letter-spacing: 2px;
				line-height: 20px;
				color: #939da8;
				font-size: 12px;
				&:hover , a:hover {
					color: black;
				}
			}
		}
	}
}

.iframe {
	.widthFx;
	width: 100-@sidebarWidth;
	height: 100-@header-height;
	margin-right: -999px;
	overflow: hidden;
	iframe {
		width: 100%;
		border: 0;
		height: 100%;
	}
}

header.top {
	padding: 2%;
	h4 {
	}

	.right {
		float: right;
	}
}

.filterPanel {
	width: 90%;
	margin: 0 auto;
	padding: 1%;
	text-align: right;
	form {
		display: inline;
	}
}

.pager {
	text-align: center;
	padding: 2%;
}

.admin-entry-form {
	form {
		margin: 0 2%;
		border: 1px solid #e3e3e3;
		overflow: hidden;
		& > div {
			padding: 1% 2%;
			border-bottom: 1px solid #e3e3e3;
		}

		& > div:nth-child(even) {
			border-top: 1px solid white;
			background: #f5f5f5;
		}

		div.label {
			float: left;
		}

		textarea {
			width: 90%;
			min-height: 90px;
		}

		.htmlEditor {
			width: 90%;
			margin: 0 auto;
		}
	}
}

.configForm {
	.ajaxjs-form;
	dl dt {
		width: 10%;
	}

	dt , dd {
		margin: 1% 0 ! important;
	}

	input , textarea {
		.ajaxjs-inputField;
	}

	button {
		.ajaxjs-btn;
	}

	.sub {
		color: gray;
		transition: color linear 300ms;
	}

	dl:hover .sub {
		color: black;
	}

	p {
		padding: 2%;
		padding-top:0;
	}
	img.icon{
		vertical-align: middle;
	}
}

.tree {
	width: 700px;
	margin-left: 15px;
	position: relative;
	li {
		overflow: hidden;
		background-color: white;
		box-sizing: border-box;
		padding-left: 10px;
		min-height: 38px;
		line-height: 38px;
		border-top: 1px solid white;
		border-bottom: 1px solid lightgray;
		&:last-child {
			border-bottom: 0;
		}

		&:nth-child(odd) {
			background-color: #f3f3f3;
		}
	}

	.parentNode {
		cursor: pointer;
	}

	.subTree {
		overflow: hidden;
		transition: height linear 100ms;
	}

	.valueHolder {
		width: 280px;
		float: right;
		padding-right: 5%;
	}

	.tipsNote {
		position: absolute;
		width: 260px;
		right: -270px;
		transition: top linear 100ms;
		b {
			letter-spacing: 2px;
		}
	}

	textarea {
		min-height: 60px;
	}
}

